From a6c6999b79dceecaac7b3f2ee7f06eb137f81a23 Mon Sep 17 00:00:00 2001 From: "kaf24@scramble.cl.cam.ac.uk" Date: Mon, 14 Jul 2003 10:50:17 +0000 Subject: [PATCH] bitkeeper revision 1.339.1.4 (3f128ae94K0MMoLR7Y6K_ZRrfo8Y1w) vfr.c: Fix registration of /proc/xeno/vfr --- xenolinux-2.4.21-sparse/arch/xeno/drivers/dom0/vfr.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xenolinux-2.4.21-sparse/arch/xeno/drivers/dom0/vfr.c b/xenolinux-2.4.21-sparse/arch/xeno/drivers/dom0/vfr.c index 2091464169..8c9f6530e7 100644 --- a/xenolinux-2.4.21-sparse/arch/xeno/drivers/dom0/vfr.c +++ b/xenolinux-2.4.21-sparse/arch/xeno/drivers/dom0/vfr.c @@ -20,6 +20,8 @@ static struct proc_dir_entry *proc_vfr; static unsigned char readbuf[1024]; +extern struct proc_dir_entry *xeno_base; + /* Helpers, implemented at the bottom. */ u32 getipaddr(const char *buff, unsigned int len); u16 antous(const char *buff, int len); @@ -224,7 +226,7 @@ static int vfr_write_proc(struct file *file, const char *buffer, static int __init init_module(void) { *readbuf = '\0'; - proc_vfr = create_proc_entry ("xeno/vfr", 0600, &proc_root); + proc_vfr = create_proc_entry ("vfr", 0600, xeno_base); if ( proc_vfr != NULL ) { proc_vfr->owner = THIS_MODULE; @@ -239,7 +241,7 @@ static int __init init_module(void) static void __exit cleanup_module(void) { if ( proc_vfr == NULL ) return; - remove_proc_entry("xeno/vfr", &proc_root); + remove_proc_entry("vfr", xeno_base); proc_vfr = NULL; } -- 2.30.2